/*
 * @Author: yxiawen
 * @Date: 2022-05-12 15:31:30
 * @LastEditTime: 2022-05-13 14:37:29
 * @LastEditors: yxiawen
 * @Description:
 * @FilePath: /iceVite/src/routers/Backend/index.ts
 */
import _ from 'lodash';

const modulesRouter = import.meta.globEager('./modules/*.ts');

let routes: any = [];

for (const path in modulesRouter) {
  if (path) {
    routes = _.concat(routes, modulesRouter[path].default);
  }
}

export default routes;
